

********************************************************
*** Replication code for Hall, Yoder, and Karandikar ***
*** Economic Distress and Voting: **********************
*** Evidence from the Subprime Mortgage Crisis *********
********************************************************

** note: set directory below to replication folder
// gl path ""


*****************
*** MAIN TEXT ***
*****************

*** All figures (1, 2, and A.1) generated in R using 
* "$path/figures.R"

** Table 1
** descriptive statistics, county-level
do "$path/table1.do"

** Table 2
** descriptive statistics, individual-level
do "$path/table2.do"

** Table 3
** main county-level results table
do "$path/table3.do"

** Table 4
** testing for trump-clinton effects
do "$path/table4.do"

** Table 5
** testing for trump-clinton effects, recent foreclosures
do "$path/table5.do"

** Table 6
** main individual-level results
do "$path/table6.do"

** Table 7
** legislative elections
do "$path/table7.do"

** Table 8
** recent forelcosures, presidential elections
do "$path/table8.do"

** Table 9
** recent foreclosures, legislative elections
do "$path/table9.do"

** Table 10
** competitive counties, presidential results
do "$path/table10.do"

***********************
*** ONLINE APPENDIX ***
***********************

** Figure A.1 generated by R script above

** Table A.1
** effects in california and other high foreclosure states
do "$path/table_a1.do"

** Table A.2
** lagged dv approach, presidential elections
do "$path/table_a2.do"

** Table A.3
** lagged dv approach, trump-clinton effects
do "$path/table_a3.do"

** Table A.4
** lagged dv approach, trump-clinton effects, recent foreclosures
do "$path/table_a4.do"

** Table A.5
** checking for pre-trending
do "$path/table_a5.do"

** Table A.6
** county covariates comparison
do "$path/table_a6.do"

** Table A.7
** small counties, presidential results
do "$path/table_a7.do"

** Table A.8
** small counties, legislative results
do "$path/table_a8.do"

** Table A.9
** no population weights, presidential results
do "$path/table_a9.do"

** Table A.10
** no population weights, trump-clinton results
do "$path/table_a10.do"

** Table A.11
** no population weights, trump-clinton results, recent foreclosures
do "$path/table_a11.do"



